package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.RecommendtbEntity;
import dao.mapper.RecommendtbDAOI;

/**
*@author JiangFan
*/
public class RecommendtbDAO extends BaseDao implements RecommendtbDAOI {

}
class RecommendtbRowMapper implements RowMapper<RecommendtbEntity>{
	@Override
	public RecommendtbEntity rowmap(ResultSet set) throws  SQLException{
		return new RecommendtbEntity(
			set.getString("recommend_id"),
			set.getString("goods_id"),
			set.getString("recommend_type"),
			set.getDate("start_time"),
			set.getDate("end_time")
		);
	}
}
